# Maintainer: Segfault <awarnecke002@hotmail.com>
pkgname=device-htc-flounder
pkgdesc="Google Nexus 9"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	linux-htc-flounder
	mkbootimg
	postmarketos-base
"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Google Nexus 9 firmware"
	depends="linux-firmware-brcm linux-firmware-nvidia firmware-htc-flounder"
	mkdir "$subpkgdir"
}

sha512sums="
996af1fb808f4064f1590e8092f595a3914e098068980c4d44fc2c6d559c4187c1966e86bcd4aefc32c0f19eae3f9e2506b7e3d3ab13cd1568dedfec70f09ab9  deviceinfo
"
